package Zy.temo3;

import java.util.Scanner;

public class FruitTest {
    public static void main(String[] args) {

        Fruit apple = new Fruit();

        Fruit balana = new Fruit();

        Fruit grape = new Fruit();

        apple.setPrice(3);
        apple.setName("苹果");
        apple.setArea("陕西");

        balana.setPrice(5);
        balana.setName("香蕉");
        balana.setArea("海南");

        grape.setPrice(8);
        grape.setName("葡萄");
        grape.setArea("江苏");
        System.out.println("苹果价格："+apple.getPrice());
        System.out.println("苹果产地："+apple.getArea());
        System.out.println("苹果名称："+apple.getName());

        System.out.println("香蕉价格："+balana.getPrice());
        System.out.println("香蕉产地："+balana.getArea());
        System.out.println("香蕉名称："+balana.getName());

        System.out.println("葡萄价格："+grape.getPrice());
        System.out.println("葡萄产地："+grape.getArea());
        System.out.println("葡萄名称："+grape.getName());





    }
}
